package com.studerb.model;

import java.util.Comparator;

/**
 * Used for keeping a headerThread's set of multi-part Headers sorted by article
 * part number;
 */
public class HeaderComparator implements Comparator<Header> {

	@Override public int compare(Header o1, Header o2) {
		return o1.getCurrentPart().compareTo(o2.getCurrentPart());
	}

}
